﻿using Ln.Fram.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Volo.Abp.AspNetCore.WebClientInfo;

namespace Ln.Fram.AspNetCore;

[DependsOn(typeof(LnFramCoreModule))]
public class LnFramAspNetCoreModule : AbpModule
{
	public override void PostConfigureServices(ServiceConfigurationContext context)
	{
		var services = context.Services;
		services.Replace(new ServiceDescriptor(typeof(IWebClientInfoProvider),
			typeof(RealIpHttpContextWebClientInfoProvider), ServiceLifetime.Transient));
	}
}